package com.zj.ssm.service.impl;

import com.alipay.api.AlipayApiException;
import com.zj.ssm.bean.AliPayBean;
import com.zj.ssm.config.Alipay;
import com.zj.ssm.service.PayService;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.logging.Logger;

/**
 * @author lilinhui
 * @author diao 2022/2/22 星期二 8:56
 */
@Service
public class PayServiceImpl implements PayService {



    @Autowired
    private Alipay alipay;

    @Override
    public String aliPay(AliPayBean aliPayBean) throws AlipayApiException {

        return alipay.pay(aliPayBean);
    }


}
